Tag Archives: array

Swapping Array Keys and Values

Dec 06, 2013

If you want interchange the keys and values of an associative array. It’s very easy, just use PHP’s array_flip() function which perform a very specialized..

Read more

PHP – multi-sort of associative array in

Oct 08, 2013

This is a complete multi-sort example of associative array in PHP. We have first sorted an associative array by values in descending order then sorted..

Read more

Re-indexing an array in PHP

Aug 07, 2013

Sometimes you need to re-index a numerically indexed array after removing elements from it.  Actually if you remove one or more elements from the middle..

Read more

Adding and Removing Array Elements in PHP

Jul 10, 2013

Sometimes working with arrays, we need to add few extra elements to the array or needs to remove element from array. PHP has some built-in..

Read more

Get an array of billing addresses and

Jun 21, 2013

Magento has no built in function to get an array of all shipping or billing addresses. However, you can do this by creating such an..

Read more

How To Convert .xsd File Into Array

Jun 19, 2013

We could not convert .xsd file into php array to convert that we should first convert the .xsd file into xml file then finally parse..

Read more